home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _0748811ABF53465B93BB9B25FF3CB509 < prev    next >
Encoding:
Text File  |  2004-07-20  |  5.6 KB  |  226 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BROKEN
  6. // $BROKENOPTIONSFILE
  7. // $NORMALS
  8. // $NORMALSOPTIONSFILE
  9. // $SPECPOW
  10.  
  11. shader()
  12. {
  13.     ShaderQuality(3)
  14.     pass()
  15.     {
  16.         //Lighting()
  17.         Pixelshader("CarLB_CmCd_ps14.psh")
  18.         Vertexshader("CarLB_CmCd_ps14.vsh")
  19.  
  20.         !include("__tex1.mtt")
  21.         !include("__Dirt.mtt")
  22. //        !include("__TerrainColormapVS.mtt")
  23.         !include("__TerrainColormapSmallVS.mtt")
  24.         !include("__CloudsVS.mtt")
  25. //        !include("__DynamicCubeMap.mtt")
  26.         !include("__CubeMap.mtt")
  27.         !include("__Broken.mtt")        
  28.  
  29.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  30.     }
  31.     Cull("cw")
  32. }
  33.  
  34. shader()
  35. {
  36.     ShaderQuality(2)
  37.     pass()
  38.     {
  39.         Pixelshader("CarBR_Cm_ps11.psh")
  40.         Vertexshader("CarBR_Cm_ps11.vsh")
  41.  
  42.         !include("__tex1.mtt")
  43.         !include("__Dirt.mtt")
  44.         !include("__TerrainColormapSmallVS.mtt")
  45. //        !include("__DynamicCubeMap.mtt")        
  46.         !include("__CubeMap.mtt")        
  47.  
  48.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  49.     }
  50.     pass()
  51.     {
  52.         //Lighting()
  53.         Pixelshader("CarLB_pass2_ps11.psh")
  54.         Vertexshader("CarLB_pass2_ps11.vsh")
  55.  
  56.         !include("__Broken.mtt")
  57.         !include("__TerrainColormapSmallVS.mtt")        
  58.  
  59.         BlendFunc("src_alpha", "inv_src_alpha")
  60.     }
  61.  
  62.     Cull("cw")
  63.  
  64. shader()
  65. {
  66.     ShaderQuality(1)
  67.     pass()
  68.     {
  69.         Pixelshader("CarLB_ps11.psh")
  70.         Vertexshader("CarLB_ps11.vsh")
  71.  
  72.         !include("__tex1.mtt")
  73.         !include("__Dirt.mtt")
  74.         !include("__TerrainColormapSmallVS.mtt")
  75.         !include("__Broken.mtt")        
  76.  
  77.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  78.     }
  79.     Cull("cw")
  80. }
  81.  
  82. //=========================== GF2 ======================================
  83. shader()
  84. {
  85.     ShaderQuality(2)
  86.     pass()
  87.     {
  88.         Lighting()
  89.         tmu()
  90.         {
  91.             TexGen("planar")
  92.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  93.             texture()
  94.             {
  95.                 Image(%colortexturesmall)
  96.                 addressfunc("clamp", "clamp", "clamp")
  97.             }
  98.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  99.             AlphaOp("arg1", "texture_a", "current", "current")
  100.         }
  101.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  102.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  103.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  104.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  105.         SpecularPow(0.0)
  106.                
  107.     }
  108.     lightpass()
  109.     !include("spot_spotmap.mtt")
  110.  
  111.     pass()
  112.     {
  113.         Lighting()
  114.         tmu()
  115.         {
  116.             Texture()
  117.             {
  118.                 Mapchannel(0)
  119.                 Image(DIRT_GF2)
  120.                 !include(DIRTOPTIONSFILE)
  121.             }
  122.             ColorOp("arg1", "tfactor", "current", "current")
  123.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  124.         }
  125.         tmu()
  126.         {
  127.             Texture()
  128.             {
  129.                 Mapchannel(0)
  130.                 Image(TEXTURE1)
  131.                 !include(TEX1OPTIONSFILE)
  132.             }
  133.             ColorOp("blend_current_alpha", "current", "texture", "current")
  134.         }
  135.  
  136.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  137.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  138.    
  139.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  140.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  141.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  142.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  143.         SpecularPow(SPECPOW)                
  144.  
  145.         BlendFunc("zero", "src_color")
  146.     }
  147.     pass()
  148.     {
  149.         Lighting()
  150.         tmu()
  151.         {
  152.             TexGen("planar")
  153.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  154.             texture()
  155.             {
  156.                 Image(%colortexturesmall)
  157.                 addressfunc("clamp", "clamp", "clamp")
  158.             }
  159.             ColorOp("mul_add", "current", "texture_a", "diffuse_a")
  160.             //AlphaOp("add", "texture_a", "diffuse_a", "current")
  161.         }
  162.         tmu()
  163.         {
  164.             Texture()
  165.             {
  166.                 Mapchannel(0)
  167.                 Image(BROKEN)
  168.                 !include(BROKENOPTIONSFILE)
  169.                 !include("__TO_Clamp&Linear.mtt")
  170.                 //!include("__TO_LODBias-100.mtt")
  171.             }
  172.             ColorOp("mul", "current", "texture", "current")
  173.             AlphaOp("arg1", "texture_a", "current", "current")
  174.         }    
  175.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  176.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  177.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  178.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  179.         SpecularPow(0.0) 
  180.         BlendFunc("src_alpha", "inv_src_alpha")
  181.     }    
  182.  
  183.     Cull("cw")
  184. }
  185. //=======================================================
  186. /*
  187. shader()
  188. {
  189.     ShaderQuality(0)
  190.     pass()
  191.     {
  192.         Lighting()
  193.         Pixelshader("CarLB_sq0.psh")
  194.         Vertexshader("Common_specular.vsh")
  195.         !include("__tex1.mtt")
  196.         !include("__Broken.mtt")        
  197.     }
  198.     Cull("cw")
  199. }
  200. */
  201. shader()
  202. {
  203.     ShaderQuality(0)
  204.     pass()
  205.     {
  206.         Lighting()
  207.         !include("__tex1.mtt")
  208.  
  209.         !include("__LightningColorsSpecGF2.mtt")  
  210.     }
  211.     pass()
  212.     {
  213.         Lighting()
  214.         !include("__Broken.mtt")
  215.  
  216.         !include("__LightningColorsSpecGF2.mtt")  
  217.         BlendFunc("src_alpha", "inv_src_alpha")
  218.     }
  219. //    lightpass()
  220. //    !include("spot_spotmap.mtt")    
  221.  
  222.     Cull("cw")
  223. }
  224.  
  225.